var app = getApp();
var SERVER_URL=app.globalData.SERVER_URL;
Page({
    onShow:function(){
        console.log(this.data);
    },
    data:{
        projectInfo:{}
    },
    onLoad:function(options){
        let id = parseInt(options.id);
        this.getType(id);
    },
    getType:function(id){
        let url = "/account/getAccount";
        let openId = wx.getStorageSync('openId');
        url = SERVER_URL+url;
        var obj=[];
        var _self=this;
        wx.request({
            url: url,
            data: {
                "key": app.globalData.key,
                id: id,
            },
            method: 'GET',
            header: {
                "Content-Type": "application/x-www-form-urlencoded"
            },
            success:function(res){
                let result = res.data;
                if(result && result.code==0){
                    _self.setData({
                        projectInfo:result.data,
                    });
                }
            }
        });
    },
    listClick:function(e){
        let index = e.currentTarget.dataset.index;
        index =parseInt(index);
        var url="";

        wx.navigateTo({
            url: url
        });
    }
});